New Functions in Week 3

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

is.na

{base}

Check if a value is NA/elements of vector are NA

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

read_excel

{readxl}

Read an Excel file

ggsave

{ggplot2}

Saves the last ggplot or a specified ggplot object to a file

min

{base}

Get minimum of a vector

rename

{dplyr}

Renames columns in a data frame or tibble.

set.seed

{base}

Initialise a pseudorandom number generator.

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

ggplot

{GGPLOT2}

Create a ggplot graph

element_text

{GGPLOT2}

Customise text in GGPLOT2

filter

{dplyr}

Filter out rows of a data frame according to logical vector

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

slice_sample

{dplyr}

Randomly selects rows from a data frame or tibble.

nrow

{base}

Get number of rows of a data frame

select

{dplyr}

Select columns from a tibble/data frame

geom_point

{GGPLOT2}

Generates a scatter plot

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

element_line

{GGPLOT2}

Customise line appearance

ungroup

{dplyr}

Resolve grouping created with “group_by”

theme

{GGPLOT2}

Set theme for GGPLOT2

The end!